/**
 * Created by Administrator on 2018/2/26 0026.
 */


payType = function (value, row, index) {
    if (row.payType == 1) {
        return '<span>' + '支付宝' + '</span>'
    } else {
        return '<span>' + '微信' + '</span>'
    }
};


recordFormatter = function (value, row, index) {
    if (row.status == 1) {
        return '<span>' + '冻结中' + '</span>'
    } else if (row.status == 2){
        return '<span>' + '待审核' + '</span>'
    }else if (row.status == 3){
        return '<span>' + '通过审核' + '</span>'
    }
};

time = function (value, row, index) {
    if (row.status == 1) {
        return '<span>' + '正常' + '</span>'
    } else if (row.status == 2){
        return '<span>' + '未处理' + '</span>'
    }else if (row.status == 3){
        return '<span>' + row.returnMoneyTime + '</span>'
    }
};

var queryRecord = function () {
    var busName = $("#busName").val();
    var url = $().AbsUrlParse("/web/deposit/queryRecord?businessName=" + busName);
    var table = $("#table");
    table.bootstrapTable("refresh", {url: url});
};

selectType = function (value, row, index) {
    if (row.type == 1) {
        return '<span>' + '假一赔三' + '</span>'
    } else {
        return '<span>' + '消费者保障金' + '</span>'
    }
};